//
//  UIViewController+Notification.m
//  qiuShiJiangHu
//
//  Created by xalo on 16/1/29.
//  Copyright © 2016年 糗事江湖项目组. All rights reserved.
//

#import "UIViewController+Notification.h"

@implementation UIViewController (Notification)

-(void)awakeFromNib
{
    [super awakeFromNib];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(modelOfNight) name:kNight object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(modelOfLight) name:kLight object:nil];
    
}

//触发通知方法
-(void)modelOfNight
{
    self.view.alpha=0.9;
    

}
-(void)modelOfLight
{

    self.view.alpha=1;

}
@end
